#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdbool.h>

int jo(int x)
{
    return x % 2;
}

bool isArraySpecial(int* nums, int numsSize)
{
    if (numsSize == 1)
        return true;
    for (int i = 0; i < numsSize - 1; i++)
    {
        int x = jo(nums[i]);
        int y = jo(nums[i + 1]);
        if (x == y)
            return false;
    }

    return true;
}